[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
do                           do Statement

    do statement while ( expr_list );

    The do/while statement executes the statements in the body, and then
    evaluates the looping criteria at the end of the loop.  If the
    expression is TRUE, the loop is re-entered and the body is executed
    again. When the expression tests FALSE, control is passed to the next
    statement following the loop.

      Notes:    With the do/while construct, the statements in the body are
                always executed at least once since the condition is tested
                at the end of the loop, rather than at the beginning, as in
                the for and while statements.

                You can  terminate a  do statement  prematurely by  using a
                break statement.

See Also: while continue break for
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson